Crate compio_signal

source ·
Expand description

Asynchronous signal handling.

§Examples

Print on “ctrl-c” notification.

use compio_signal::ctrl_c;

ctrl_c().await.unwrap();
println!("ctrl-c received!");

Modules§

  • unixUnix
    Linux-specific types for signal handling.

Functions§

  • Completes when a “ctrl-c” notification is sent to the process.